home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Workbench Add-On
/
Workbench Add-On - Volume 1.iso
/
BBS-Archive
/
Dev
/
Obrn-A_1.6_lib.lha
/
oberon-a
/
source3.lha
/
source
/
3rdParty
/
ARPUtil.mod
< prev
next >
Wrap
Text File
|
1995-06-29
|
1KB
|
51 lines
(*************************************************************************
$RCSfile: ARPUtil.mod $
Description: Support for clients of arp.library
Created by: fjc (Frank Copeland)
$Revision: 2.10 $
$Author: fjc $
$Date: 1995/06/04 23:11:42 $
Copyright © 1994-1995, Frank Copeland.
This file is part of the Oberon-A Library.
See Oberon-A.doc for conditions of use and distribution.
*************************************************************************)
<* STANDARD- *>
MODULE ARPUtil;
IMPORT SYS := SYSTEM, i := Intuition, ARP;
(*------------------------------------*)
(*
Simple wrapper for calling the ARP FileRequester.
*)
PROCEDURE RequestFile * (
window : i.WindowPtr;
hail : ARRAY OF CHAR;
VAR file : ARRAY OF CHAR;
VAR directory : ARRAY OF CHAR )
: BOOLEAN;
VAR fr : ARP.FileRequester;
<*$CopyArrays-*>
BEGIN (* RequestFile *)
fr.hail := SYS.ADR(hail);
fr.file := SYS.ADR(file);
fr.dir := SYS.ADR(directory);
fr.window := window;
fr.funcFlags := {ARP.newIDCMP, ARP.doColor};
fr.flags2 := {ARP.longPath};
fr.leftEdge := 0;
fr.topEdge := 0;
RETURN (ARP.FileRequest (fr) # NIL);
END RequestFile;
END ARPUtil.